package com.cn.jinl.domain;

import com.cn.jinl.utils.CommonUtil;
import com.google.common.collect.ImmutableMap;

import java.util.Date;
import java.util.Map;

public class PersonnelManagement {
    private String id;

    private String jobCategory;

    private String deptId;

    private String jobNumber;

    private String employeeName;

    private String gender;

    private String joinedDate;

    private String onboardingStatus;

    private String birthday;

    private String idCard;

    private String healthStatus;

    private String whetherProbation;

    private String probationConclusion;

    private String endDate;

    private String ensurePeopleId;

    private String ensureDate;

    private String terminateDate;

    private String remarks;

    private String operatorId;

    private String operatorDate;

    private String headId;

    private String createUserId;

    private String status;

    private Date createTime;

    private Date updateTime;

    private String deptName;

    private String createrName;

    private String ensuerName;

    private String operatorName;

    private String jobyear;//工龄

    //头像对象
    private String fileUrl;
    private String fileCheck;
    private String displayName;

    public static final transient Map<String,String> BOARDINGSTAT = ImmutableMap.of("0","试用在职","1","合格在职","2","离职");
    public static final transient Map<String,String> HEALTHSTAT = ImmutableMap.of("0","是","1","否");
    public static final transient Map<String,String> WHETHERPROBATION = ImmutableMap.of("0","是","1","否");
    public static final transient Map<String,String> PROBATIONCONCLUSION = ImmutableMap.of("0","合格","1","不合格");
    public static final transient Map<String,String> GENDER = ImmutableMap.of("M","男","F","女");
    public static final transient Map<String,String> JOBCATEGORY = ImmutableMap.of("A","管理","Y","操作");

    public String getOnboardingStatusCn() {
        return BOARDINGSTAT.get(getOnboardingStatus());
    }

    public String getHealthStatusCn() {
        return HEALTHSTAT.get(getHealthStatus());
    }

    public String getWhetherProbationCn() {
        return WHETHERPROBATION.get(getWhetherProbation());
    }

    public String getProbationConclusionCn() {
        return PROBATIONCONCLUSION.get(getProbationConclusion());
    }

    public String getGenderCn() {
        return GENDER.get(getGender());
    }

    public String getJobCategoryCn() {
        return JOBCATEGORY.get(getJobCategory());
    }


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getJobCategory() {
        return jobCategory;
    }

    public void setJobCategory(String jobCategory) {
        this.jobCategory = jobCategory == null ? null : jobCategory.trim();
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId == null ? null : deptId.trim();
    }

    public String getJobNumber() {
        return jobNumber;
    }

    public void setJobNumber(String jobNumber) {
        this.jobNumber = jobNumber == null ? null : jobNumber.trim();
    }

    public String getEmployeeName() {
        return employeeName;
    }

    public void setEmployeeName(String employeeName) {
        this.employeeName = employeeName == null ? null : employeeName.trim();
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender == null ? null : gender.trim();
    }

    public String getJoinedDate() {
        return joinedDate;
    }

    public void setJoinedDate(String joinedDate) {
        this.joinedDate = joinedDate == null ? null : joinedDate.trim();
    }

    public String getOnboardingStatus() {
        return onboardingStatus;
    }

    public void setOnboardingStatus(String onboardingStatus) {
        this.onboardingStatus = onboardingStatus == null ? null : onboardingStatus.trim();
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday == null ? null : birthday.trim();
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard == null ? null : idCard.trim();
    }

    public String getHealthStatus() {
        return healthStatus;
    }

    public void setHealthStatus(String healthStatus) {
        this.healthStatus = healthStatus == null ? null : healthStatus.trim();
    }


    public String getWhetherProbation() {
        return whetherProbation;
    }

    public void setWhetherProbation(String whetherProbation) {
        this.whetherProbation = whetherProbation == null ? null : whetherProbation.trim();
    }

    public String getProbationConclusion() {
        return probationConclusion;
    }

    public void setProbationConclusion(String probationConclusion) {
        this.probationConclusion = probationConclusion == null ? null : probationConclusion.trim();
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate == null ? null : endDate.trim();
    }

    public String getEnsurePeopleId() {
        return ensurePeopleId;
    }

    public void setEnsurePeopleId(String ensurePeopleId) {
        this.ensurePeopleId = ensurePeopleId == null ? null : ensurePeopleId.trim();
    }

    public String getEnsureDate() {
        return ensureDate;
    }

    public void setEnsureDate(String ensureDate) {
        this.ensureDate = ensureDate == null ? null : ensureDate.trim();
    }

    public String getTerminateDate() {
        return terminateDate;
    }

    public void setTerminateDate(String terminateDate) {
        this.terminateDate = terminateDate == null ? null : terminateDate.trim();
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks == null ? null : remarks.trim();
    }

    public String getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(String operatorId) {
        this.operatorId = operatorId == null ? null : operatorId.trim();
    }

    public String getOperatorDate() {
        return operatorDate;
    }

    public void setOperatorDate(String operatorDate) {
        this.operatorDate = operatorDate == null ? null : operatorDate.trim();
    }

    public String getHeadId() {
        return headId;
    }

    public void setHeadId(String headId) {
        this.headId = headId == null ? null : headId.trim();
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId == null ? null : createUserId.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getCreateTimeFt() {
        String formatTime = CommonUtil.getStrTime(getCreateTime(),"yyyy-MM-dd HH:mm:ss");
        return formatTime;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getCreaterName() {
        return createrName;
    }

    public void setCreaterName(String createrName) {
        this.createrName = createrName;
    }

    public String getEnsuerName() {
        return ensuerName;
    }

    public void setEnsuerName(String ensuerName) {
        this.ensuerName = ensuerName;
    }

    public String getOperatorName() {
        return operatorName;
    }

    public void setOperatorName(String operatorName) {
        this.operatorName = operatorName;
    }

    public String getJobyear() {
        return jobyear;
    }

    public void setJobyear(String jobyear) {
        this.jobyear = jobyear;
    }

    //头像
    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    public String getFileCheck() {
        return fileCheck;
    }

    public void setFileCheck(String fileCheck) {
        this.fileCheck = fileCheck;
    }

    public String getDisplayName() {
        return displayName;
    }

    public void setDisplayName(String displayName) {
        this.displayName = displayName;
    }
}